package com.example.demo.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class ReadListStudent {

    @Autowired
    private ListStudent listStudent;

    @PostConstruct
    public void PostConstruct() {
        System.out.println(listStudent);
    }

}
